package com.jyb.qiyefuwu.api.service;

import com.jyb.qiyefuwu.entity.ServiceListEntiy;
import com.jyb.qiyefuwu.entity.ServiceSecondClassEntiy;
import com.sgb.net.entity.BaseEntity;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface HomeApi {
    /**
     * 企业服务 快速发布
     *
     * @param map
     * @return
     */
    @POST("v1/app/enterpriseServices/homePageConfiguation/issueDemand")
    Call<BaseEntity> publishDemandFun(@Body Map map);

    /**
     * 首页获取一级分类
     */
    @GET("v1/app/enterpriseServices/homePageConfiguation/getcategoryFirstInfo")
    Call<BaseEntity<List<ServiceSecondClassEntiy>>> getserviceTitleLableForClass1();

    /**
     * 获取二三级分类
     *
     * @param serviceClass 一级分类id
     * @return
     */
    @POST("v1/app/enterpriseServices/homePageConfiguation/app/getTwoAndThreeService")
    Call<BaseEntity<List<ServiceSecondClassEntiy>>> getservicecategorySecond(@Query("firstId") String serviceClass);

    /**
     * 服务大厅新数据  未迁移
     * @param map
     * @return
     */
    @POST("v1/app/enterpriseServices/serviceClass/getServiceHallCompanyOrTeamList")
    Call<BaseEntity<List<ServiceListEntiy>>> getServiceHallCompanyOrTeamList(@Body Map map);

    /**
     * 企业服务 首页获取验证码
     *
     * @param telPhone
     * @return
     */
    @GET("v1/app/enterpriseServices/homePageConfiguation/getPhoneVerificationCode")
    Call<BaseEntity> getVerificationCode(@Query("telPhone") String telPhone);

    /**
     * 服务列表取消关注团队
     * @param map
     * @return
     */
    @POST("v1/app/enterpriseServices/serviceClass/attentionCompanyOrTeam")
    Call<BaseEntity> setFollowForCompanyAndTeam(@Body Map map);


}
